/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.invoice.service.contadores;

/**
 *
 * @author Lenin
 */
public class ContadorClientes extends Contador{
    public ContadorClientes(){
        base="C";
        lenght=6;
        ID_TABLA=2;
    }
    @Override
    public String generarClave(String serie) {
        int number = getNextNumeracion() ;
        if(!serie.isEmpty())
            return String.format("%03d-%04d", Integer.parseInt(serie), number);
        else
            return String.format("%04d", number);
    }
    
}
